<template>
	<view>
		<!-- #ifdef H5 || MP-WEIXIN-->
		<web-view :webview-styles="webviewStyles" :src="'http://duxinggj.com/www/phone/knd/map.html?v=7&type='+this.type">
			<cover-view class="controls-title">简单的自定义 controls</cover-view>
		</web-view>
		
		
		<!-- #endif -->

	</view>
</template>
<script>
	var wv; //计划创建的webview
	export default {
		data() {
			return {
				jhbjsd: 0,
				type:0,
				webviewStyles: {
					progress: {
						color: '#191D29'
					}
				}
			}
		},
		onLoad(e) {
			this.type = e.type
		},
		onReady() {
			// #ifdef APP-PLUS
			wv = plus.webview.create("", "custom-webview", {
				plusrequire: "none", //禁止远程网页使用plus的API，有些使用mui制作的网页可能会监听plus.key，造成关闭页面混乱，可以通过这种方式禁止
				'uni-app': 'none',
				mask: '#191D29'
			})
			wv.loadURL("http://duxinggj.com/www/phone/knd/map.html")
			var currentWebview = this.$scope.$getAppWebview();
			currentWebview.append(wv);
			wv.onloaded = function() {
				wv.setStyle({
					mask: "none"
				});
			}

			// #endif
		},
		components: {},
		methods: {
			jhhhsd() {

			}
		},
		mounted() {

		}
	}
</script>
<style scoped>
	.kjjderrt {
		opacity: 0;
	}

	.kkkswer {
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		/* background-color: red; */
		z-index: 1000;
	}

	.controls-title {
		font-size: 100upx;
		width: 100%;
		text-align: center;
		color: red;
	}
</style>
